package com.hx.order.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * order实体类
 * @author Administrator
 *
 */
@Table(name="order_all")
@Data
public class Order implements Serializable{

	@Id
	@Column(name = "order_id")
	private String orderId;//订单id
	@Column(name = "total_pay")
	private Long totalPay;//总金额
	@Column(name = "create_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;//创建时间
	@Column(name = "user_id")
	private Long userId;//用户id
	@Column(name = "doctor_id")
	private Long doctorId;//医生id

	private Integer type;//type

	
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Long getTotalPay() {
		return totalPay;
	}
	public void setTotalPay(Long totalPay) {
		this.totalPay = totalPay;
	}

	public java.util.Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(java.util.Date createTime) {
		this.createTime = createTime;
	}

	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getDoctorId() {
		return doctorId;
	}
	public void setDoctorId(Long doctorId) {
		this.doctorId = doctorId;
	}

	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}


	
}
